<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<div class="form-edit-task">

<?php if($this->msg):?>
<div class="replace"><?=$this->msg?></div>
<?php endif;?>

<form action="/bk/add-topic-submit" method="post" name="form1" onsubmit="return submitform(this)">
<span>标题：</span><input type="text" placeholder="标题" name="title" id="title">  <font>*</font><br/><br/>
<span>正文：</span><script id="contents" type="text/plain" style="width:1024px;height:700px;"></script><br/><br/><br/>
<input type="submit" class="buttonlong" value="提交" />
<br /><br />
</form>
</div>
<br/><br/>
</div>

<script>
var ue = UE.getEditor('contents');

function submitform() 
{
	if( document.form1.title.value.length == 0 )
	{
		alert("标题不能为空。");
		return false;
	}
	
	form1.submit();
}
</script>